﻿<UserControl x:Class="AzukiMapUI.WMSLayerProperties"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    Width="600" Height="480" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d">
	<Grid x:Name="LayoutRoot" Background="#FFFFFFFF">
		<Grid.RowDefinitions>
			<RowDefinition Height="26"/>
			<RowDefinition Height="26"/>
			<RowDefinition Height="26"/>
			<RowDefinition Height="26"/>
			<RowDefinition Height="26"/>
			<RowDefinition Height="26"/>
			<RowDefinition Height="26"/>
			<RowDefinition Height="26"/>
			<RowDefinition Height="26"/>
			<RowDefinition Height="26"/>
		</Grid.RowDefinitions>
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="150"/>
			<ColumnDefinition Width="*"/>
		</Grid.ColumnDefinitions>
        
        <!-- labels -->
		<TextBlock Margin="8,0,0,0" Text="Server Base URI" TextWrapping="Wrap" VerticalAlignment="Center"/>
		<TextBlock Margin="8,0,8,0" Text="WMS Version" TextWrapping="Wrap" Grid.Row="1" VerticalAlignment="Center"/>
		<TextBlock Margin="8,0,8,0" Text="Layer Names" TextWrapping="Wrap" Grid.Row="2" VerticalAlignment="Center"/>
		<TextBlock Margin="8,0,8,0" Text="Background" TextWrapping="Wrap" Grid.Row="3" VerticalAlignment="Center"/>
		<TextBlock Margin="8,0,8,0" Text="Format" TextWrapping="Wrap" Grid.Row="4" VerticalAlignment="Center"/>
		<TextBlock Margin="8,0,8,0" Text="SRID" TextWrapping="Wrap" Grid.Row="5" VerticalAlignment="Center"/>
		<TextBlock Margin="8,0,8,0" Text="Lat-Lon Order" TextWrapping="Wrap" Grid.Row="6" VerticalAlignment="Center"/>
		<TextBlock Margin="8,0,8,0" Text="Max Scale" TextWrapping="Wrap" Grid.Row="7" VerticalAlignment="Center"/>
		<TextBlock Margin="8,0,8,0" TextWrapping="Wrap" Grid.Row="8" VerticalAlignment="Center"><Run Text="M"/><Run Text="in"/><Run Text=" Scale"/></TextBlock>
        
        <!-- inputs -->
		<TextBox x:Name="TbServerBase" LostFocus="TbServerBase_LostFocus" Margin="8,0,8,0" Text="http://localhost/azukimap" TextWrapping="Wrap" Grid.Column="1" d:LayoutOverrides="HorizontalAlignment" VerticalAlignment="Center"/>
		<ComboBox x:Name="CbWmsVersion" LostFocus="CbWmsVersion_LostFocus" Margin="8,0,8,0" Grid.Column="1" Grid.Row="1" SelectedIndex="1" VerticalAlignment="Center">
			<TextBlock Text="1.1"/>
			<TextBlock Text="1.1.1"/>
			<TextBlock Text="1.3.0"/>
		</ComboBox>
		<TextBox x:Name="TbLayers" LostFocus="TbLayers_LostFocus" Margin="8,0,8,0" TextWrapping="Wrap" Grid.Column="1" Grid.Row="2" VerticalAlignment="Center"/>
		<CheckBox x:Name="ChkBackground" LostFocus="ChkBackground_LostFocus" HorizontalAlignment="Left" Margin="8,0,0,0" Width="Auto" Grid.Column="1" Grid.Row="3" Content="transparent" VerticalAlignment="Center"/>
		<ComboBox x:Name="CbFormat" LostFocus="CbFormat_LostFocus" Margin="8,0,8,0" SelectedIndex="0" Grid.Column="1" Grid.Row="4" VerticalAlignment="Center">
			<TextBlock Text="PNG"/>
			<TextBlock Text="JPEG"/>
		</ComboBox>
		<TextBox x:Name="TbSrid" LostFocus="TbSrid_LostFocus" Margin="8,0,8,0" Text="4326" TextWrapping="Wrap" Grid.Column="1" Grid.Row="5" VerticalAlignment="Center"/>
		<ComboBox x:Name="CbLatLon" LostFocus="CbLatLon_LostFocus" Margin="8,0,8,0" SelectedIndex="0" Grid.Column="1" Grid.Row="6" VerticalAlignment="Center">
			<TextBlock Text="Lon - Lat"/>
			<TextBlock Text="Lat - Lon"/>
		</ComboBox>
		<TextBox x:Name="TbMaxScale" LostFocus="TbMaxScale_LostFocus" Margin="8,0,8,0" Text="999999999999" TextWrapping="Wrap" Grid.Column="1" Grid.Row="7" VerticalAlignment="Center"/>
		<TextBox x:Name="TbMinScale" LostFocus="TbMinScale_LostFocus" Margin="8,0,8,0" Text="0" TextWrapping="Wrap" Grid.Column="1" Grid.Row="8" VerticalAlignment="Center"/>
        <!--
		<Button Height="24" HorizontalAlignment="Right" Margin="0,0,8,-32" VerticalAlignment="Bottom" Width="96" Grid.Column="1" Grid.Row="9" Content="Test" d:LayoutOverrides="VerticalAlignment"/>
        -->
        
        <!-- warning icons -->
        <Image Height="16" x:Name="IconErrorServerBase" HorizontalAlignment="Right" Margin="0,8,4,0" Visibility="Visible" VerticalAlignment="Top" Width="16" Source="../icons/error.png" Stretch="Fill" Grid.Row="0"/>
        <Image Height="16" x:Name="IconErrorLayers" HorizontalAlignment="Right" Margin="0,8,4,0" Visibility="Visible" VerticalAlignment="Top" Width="16" Source="../icons/error.png" Stretch="Fill" Grid.Row="2"/>
        <Image Height="16" x:Name="IconErrorSrid" HorizontalAlignment="Right" Margin="0,0,4,0" Visibility="Visible" VerticalAlignment="Center" Width="16" Source="../icons/error.png" Stretch="Fill" Grid.Row="5"/>
        <Image Height="16" x:Name="IconErrorMaxScale" HorizontalAlignment="Right" Margin="0,0,4,0" Visibility="Visible" VerticalAlignment="Center" Width="16" Source="../icons/error.png" Stretch="Fill" Grid.Row="7"/>
        <Image Height="16" x:Name="IconErrorMinScale" HorizontalAlignment="Right" Margin="0,0,4,0" Visibility="Visible" VerticalAlignment="Center" Width="16" Source="../icons/error.png" Stretch="Fill" Grid.Row="8"/>
	</Grid>
</UserControl>